﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace WebKpiPage.Data.util
{
    public class RegionBound
    {
        public float minx;
        public float miny;
        public float maxx;
        public float maxy;

        public PointF[] ToRegionPointF()
        {
            PointF[] points = new PointF[5];

            points[0].X = minx;
            points[0].Y = miny;

            points[1].X = minx;
            points[1].Y = maxy;

            points[2].X = maxx;
            points[2].Y = maxy;

            points[3].X = maxx;
            points[3].Y = miny;

            points[4].X = minx;
            points[4].Y = miny;

            return points;
        }

    }
}
